<html>
	<script type="text/javascript">
	window.onload = function ajax(){
				var childRequest = new XMLHttpRequest();
				var url = "http://localhost:8080/TripleBuyAngel/AddToCartServlet";
				
				childRequest.onreadystatechange = function() {
					if (childRequest.readyState == 4 && childRequest.status == 200) {
						var result = childRequest.responseText;
						//var re = eval("(" + result + ")");
						alert(result);
						
					}
				};
				
				childRequest.open("GET", url, true);
				childRequest.send();
			}
	</script>
</html>